<template>
	<view class="address">
		<view class="address-nosite" v-if="false">
			<image src="../../static/nosite.jpg" mode="aspectFit"></image>
			<view>暂无地址</view>
		</view>
		<view class="address-ls" v-else>
			<view class="address-item" v-for="item in 3">
				<view class="address-item-l" @click="handleCartCheck(item.id)">
					<uni-icons type="circle" size="28" color="#00922a"></uni-icons>
				</view>
				<view class="address-item-c">
					<view class="address-item-h1">吉林省吉林市昌邑区哈达湾街道</view>
					<view class="address-item-h2">幸福路哈达家居南侧大林幸福家园156号</view>
					<view class="address-item-h1">汪小圣 159****8903</view>
				</view>
				<navigator url="/pages/address/edit" class="address-item-r" hover-class="none">
					<uni-icons type="compose" size="24" color="#343434"></uni-icons>
				</navigator>
			</view>
		</view>

		<view style="height:100rpx"></view>
		<view class="address-bot">
			<navigator url="">+ 添加新地址</navigator>
		</view>
	</view>
</template>

<script setup>

</script>

<style lang="scss">
	page {
		background: #f3f3f3;
	}

	.address {
		&-nosite {
			padding-top: 80rpx;
			text-align: center;

			image {
				display: block;
				margin: auto;
				width: 360rpx;
				height: 320rpx;
			}

			view {
				padding-top: 50rpx;
				font-size: 30rpx;
				color: $c9;
			}
		}

		&-item {
			background: $cf;
			margin-bottom: 10rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 30rpx 20rpx;

			&-l {
				flex-shrink: 0;
			}

			&-c {
				padding: 0 30rpx;
			}

			&-h1 {
				font-size: 28rpx;
				color: $c9;
			}

			&-h2 {
				font-size: 34rpx;
				color: $c3;
				padding: 10rpx 0;
			}

			&-r {
				flex-shrink: 0;
				padding: 20rpx;
			}
		}

		&-bot {
			position: fixed;
			bottom: 0;
			left: 0;
			width: 100%;
			height: 100rpx;
			background: $cf;
			padding: 0 20rpx;
			box-sizing: border-box;
			display: flex;
			align-items: center;

			navigator {
				background: $main-color;
				font-size: 30rpx;
				color: $cf;
				text-align: center;
				border-radius: 5px;
				width: 100%;
				line-height: 2.2;
			}
		}
	}
</style>